<template>
<!-- 顶部的打开APP组件，按需引入 -->
  <div class="upView">
    <div class="leftView">
      <van-icon @click="closeUpView" class="iconVIew" name="cross" />
    </div>
    <img
      src="https://yanxuan.nosdn.127.net/1fe7a46449e44c20d508bf514e195c9f.png"
      alt=""
    />
  </div>
</template>

<script>
export default {
  name: "upView",
  methods: {
    // 点击x关闭顶部的组件
    closeUpView(){
        
    }
  },
};
</script>

<style lang="less" scoped>
.upView {
  width: 100%;
  height: 52px;
  position: relative;
  img {
    width: 100%;
  }
  .leftView {
    width: 19px;
    height: 52px;
    color: white;
    position: absolute;
    .iconVIew {
      width: 30px !important;
      height: 30px !important;
      line-height: 19px;
    }
  }
}
</style>
